package com.lfy.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients("com.lfy.api.product")
/*
* openfeign 要求
* 1.引入openfeign依赖，并写写一个接口，说明是调用谁
* 2.再写一个方法，标注对应的注解，告诉springcloud，调用哪个服务
 */
@EnableDiscoveryClient
public class OrderMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrderMainApplication.class,args);
    }
}
